package com.question_barrier.vo.user;

import com.question_barrier.entity.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("用户积分")
public class UserIntegral {
    @ApiModelProperty("用户积分")
    private long integral;

    public UserIntegral(User user){
        this.integral = user.getIntegral();

    }
    public UserIntegral(long integral){
        this.integral = integral;

    }
}
